//
//  User.swift
//  MyWeiBlog
//
//  Created by laichunhui on 15/10/8.
//  Copyright © 2015年 lch. All rights reserved.
//

import UIKit

enum humanSex: String {
    
    case male, female, unknown
}

/// 微博用户模型
class User: NSObject {
    /// 用户UID
    var id: Int = 0
    /// 用户昵称
    var screen_name: String?
    /// 用户性别
    var gender: String?

    /// 用户头像地址（中图），50×50像素
    var profile_image_url: String?
    /// 用户头像地址（大图），180×180像素
    var avatar_large: String?
    /// 认证类型，-1：没有认证，0，认证用户，2,3,5: 企业认证，220: 达人
    var verified_type: Int = 0
    /// 会员等级 0-6
    var mbrank: Int = 0
    
    /// 粉丝数
    var followers_count: Int = 0
    /// 关注数
    var friends_count: Int = 0
    
    
    init(dict: [String: AnyObject]) {
        super.init()
        
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {}
    
    override var description: String {
        let keys = ["id", "screen_name", "gender", "screen_name", "profile_image_url", "verified_type", "mbrank", "followers_count", "friends_count"]
//    override var description: String {
//            let keys = ["id", "screen_name", "profile_image_url", "verified_type", "mbrank"]
        return dictionaryWithValuesForKeys(keys).description
    }
}
